package com.accounting.model;

/**
 * VoucherWordId entity. @author MyEclipse Persistence Tools
 */

public class VoucherWordId implements java.io.Serializable {

	// Fields

	private Integer adminId;
	private String voucherWord;

	// Constructors

	/** default constructor */
	public VoucherWordId() {
	}

	/** full constructor */
	public VoucherWordId(Integer adminId, String voucherWord) {
		this.adminId = adminId;
		this.voucherWord = voucherWord;
	}

	// Property accessors

	public Integer getAdminId() {
		return this.adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	public String getVoucherWord() {
		return this.voucherWord;
	}

	public void setVoucherWord(String voucherWord) {
		this.voucherWord = voucherWord;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VoucherWordId))
			return false;
		VoucherWordId castOther = (VoucherWordId) other;

		return ((this.getAdminId() == castOther.getAdminId()) || (this
				.getAdminId() != null
				&& castOther.getAdminId() != null && this.getAdminId().equals(
				castOther.getAdminId())))
				&& ((this.getVoucherWord() == castOther.getVoucherWord()) || (this
						.getVoucherWord() != null
						&& castOther.getVoucherWord() != null && this
						.getVoucherWord().equals(castOther.getVoucherWord())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAdminId() == null ? 0 : this.getAdminId().hashCode());
		result = 37
				* result
				+ (getVoucherWord() == null ? 0 : this.getVoucherWord()
						.hashCode());
		return result;
	}

}